package com.example.higo.api.service.homepagecallback;

import com.example.higo.api.ApiService;
import com.example.higo.model.entity.homepage.HomePageBody;
import com.example.higo.model.entity.homepage.HomePageTab;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;


/**
 * Created by wj on 2016/11/6.
 */

public interface HomePageCallBack {

    /**
     * 头部Banner
     * @return
     */
    @GET(ApiService.HOME_PAGE_TAB)
    Observable<HomePageTab> getHomePageTabData();

    /**
     * Body
     * @return
     */
    @GET(ApiService.HOME_PAGE_BODY)
    Observable<HomePageBody> getHomePageBodyData(@Query("p") String page);

}
